package cn.dlc.com.biz.user.service.impl;

import cn.dlc.com.biz.user.entity.User;
import cn.dlc.com.biz.user.mapper.UserMapper;
import cn.dlc.com.biz.user.service.UserService;
import cn.dlc.com.sys.config.aop.OperateLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: dlc
 * @Date: 2021/11/29 - 15:31
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    @OperateLog(operate = "查询列表", bizModel = "用户模块")
    public List<User> findAll() {
        System.out.println("userservice");
        return userMapper.findAll();
    }
}
